package com.zixi.ai.rag.service;

import com.zixi.ai.common.domain.R;
import com.zixi.ai.framework.service.BaseService;
import com.zixi.ai.rag.dto.DocumentDto;
import com.zixi.ai.rag.entity.AiKnowledgeEntity;
import org.springframework.ai.document.Document;
import org.springframework.ai.vectorstore.VectorStore;

import java.util.List;

/**
 * @author wfg
 */
public interface IAiKnowledgeService extends BaseService<AiKnowledgeEntity, Long> {
    R<List<Document>> search(Long id, String keyword);

    Boolean saveText(Long knowledgeId, List<DocumentDto> docs);
    VectorStore getVectorStoreById(Long id);
}
